package org.ithang.application.teamBonus.service;

import java.util.List;
import java.util.Map;
import org.ithang.application.teamBonus.mapper.TeamBonusMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.apache.log4j.Logger;
import org.ithang.tools.model.Pager;
import org.ithang.tools.database.ModelDao;
import org.ithang.application.teamBonus.bean.TeamBonus;

/**
 * 加速分红 服务
 * @author zyt
 *
 */
@Service
public class TeamBonusService extends ModelDao<TeamBonus>{

    @Autowired
    private TeamBonusMapper teamBonusMapper;

    private Logger logger = Logger.getLogger(TeamBonusService.class);
    
    public void add(TeamBonus teamBonus){
        teamBonusMapper.add(teamBonus);
    }
    
    public TeamBonus get(Long id){
        return teamBonusMapper.get(id);
    }
    
    public int delete(Long id){
        return teamBonusMapper.delete(id);
    }
    
    public int batchDelete(String[] ids){
    	return teamBonusMapper.batchDelete(ids);
    }
    
    public List<TeamBonus> list(Long... ids){
    	return teamBonusMapper.list(ids);
    }
    
    public List<TeamBonus> page(Pager<TeamBonus> page){
    	return teamBonusMapper.page(page);
    }
    
    public Double getTamount(Pager<TeamBonus> page){
    	return teamBonusMapper.tmount(page);
    }
    
    public List<TeamBonus> query(Map<String,Object> conditions){
    	return teamBonusMapper.query(conditions);
    }
    
    public int update(TeamBonus teamBonus){
    	return teamBonusMapper.update(teamBonus);
    }
    
    
}